package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.ProductDetailBean;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;

public interface GetProductDetailContractor {
    interface Model {
        ApiService mService = NetClient.getInstance().net().create(ApiService.class);

        void getDetail(String productID);

        interface CallBack extends BaseHttpListener {
            void onSuccess(BaseResponse<ProductDetailBean> response);
        }

    }

    interface View extends BaseView {
        void onGetDetailSuccess(ProductDetailBean detail);

    }

    interface Presenter {
        void getProductDetail();

    }
}
